package controllayer;



import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class VareControllerTest.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class VareControllerTest
{
    /**
     * Default constructor for test class VareControllerTest
     */
    public VareControllerTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }
    
    @Test
    public void findVareTest()
    {
        controllayer.VareController vController = controllayer.VareController.getInstance();
        assertEquals(null, vController.findVare("testStregkode"));
        modellayer.Vare vare = vController.findVare("12345678");
        assertEquals(vare, vController.findVare("12345678"));
    }
}
